PLUGIN_FIND_PACKAGE (FREETYPE freetype2)
IF (NOT FREETYPE_FOUND)
  CHECK_INCLUDE_FILE (freetype.h HAVE_FREETYPE_H)
  CHECK_INCLUDE_FILE (freetype2/freetype.h HAVE_FREETYPE2_FREETYPE_H)
  IF (NOT HAVE_FREETYPE_H AND NOT HAVE_FREETYPE2_FREETYPE_H)
    PLUGIN_DISABLE ()
  ELSE ()
    PLUGIN_REQUIRE_LIBRARY (FREETYPE freetype)
    PLUGIN_REQUIRE_LIBRARY (Z z)
  ENDIF ()
ENDIF ()
